package com.weibo4j.api.response.user;

import com.weibo4j.api.WeiboResponse;
import com.weibo4j.api.domain.User;
import com.weibo4j.api.json.JSON;

public class UserGetResponse extends WeiboResponse<User> {

    private User                model;
    
    @Override
    public boolean isSuccess() {
    	boolean isSuccess = super.isSuccess();
    	if (isSuccess && model == null) {
    		model = JSON.parseObject(jsonString, User.class);
    	}
    	return isSuccess;
    }
    

	@Override
    public User getModel() {
		if (success && model == null) {
			isSuccess();
		}
        return model;
    }


}
